Skip to main content

Adding an Integration Rule (VIRTUAL Dataset)

Integration Rules are defined using the VIRTUAL Dataset channel, which is used to create connections between Datasets in order to facilitate communications between systems.

To create a new Integration Rule VIRTUAL Dataset: 

  1. Run the Integration Framework Configurator.

  2. Click on your Windows Start button to display the list of installed software applications.

  3. From the list of software applications, select Integration FrameworkConfigurator.

    The Integration Framework - Configurator window opens.

  4. From the Configured Data Server list, select the Channel Object (the type of the Connector) for the target system.

  5. Select the Connector that represents the link with that external system.

  6. Right-click on the Integration Rule Group to which you want to add an Integration Rule, and select Add.

  7. The Configure Virtual Data Server Source window opens.![Figure 1495: Configure Virtual Data Server Source window](/img/docs/add- integra-rule-virtual-ds_config-virtual-data-svr-source-WND.png)

    The window contains two tabs:

  • Virtual Data Source tab: Contains the main parameters for the dataset. This is the tab you use to define/edit the parameters for the Virutal Dataset.
  • Log tab: Allows you to search and display the trace messages generated for the Virtual Connector. Traces/Logs are packed by “executions” or “calls”. This means that a new set of trace/logs messages is created each time a call is invoked for the selected SOA Listener. \See, Search & Display SOA Trace Messages for more detailed information.
  1. In the toolbar, click on the ![](/img/docs/add- integra-rule-virtual-ds_if-configurator-tree-ICON.png) Tree icon to show the list of existing datasets.

    The Tree icon works as a toggle to display and hide the left side Dataset selection pane, allowing you a larger area on the right in which to configure the Integration Rule.

  2. Drag a dataset from the left panel into the 'Virtual definition area', (the larger pane on the right).

    A table appears, as shown in the following figure.![Figure 1496: Virtual Data Source - Define Parameters](/img/docs/add- integra-rule-virtual-ds_virtual-data-source-parameters.png)

    The Virtual definition area on the right is the Integration Rule graphic dashboard where you can draw your integration workflows. You create the workflows by dragging the Datasets and Tools from the tree on the left to inside the graphic dashboard. Once dropped onto the graphic dashboard, the selected item appears as a box. For more details about the boxes see Virtual Definition Representations, following these steps.

  3. Continue dragging datasets until you have all that are required to be involved in your the Integration Rule.

  4. (Optional) To remove a dataset from the Virtual definition area:

  5. Right-click on the Dataset table, to display the list of options.

  6. Select Remove the Server Data set.

  7. (Optional) To preview the actual results of the Dataset,

  8. Right-click on one of the tables to display the list of options.

  9. Select Preview results.

    ![Closed](/img/docs/add- integra-rule-virtual-ds_transparent.gif)EXAMPLE: Virtual Dataset Results![Figure 1497: Virtual Dataset Results](/img/docs/add- integra-rule-virtual-ds_virtual-dataset-results-WND.png)

  10. Create the connection between the datasets:

  11. Position the cursor over the first dataset (on the left) at a particular row.

  12. When a cross symbol appears, drag the cursor over the second dataset.

    Once a connection has been established, a colored arrow appears between the two Datasets, indicating the direction of the connection.

    A connection between two boxes indicates that the results (if any) from the source will be passed to the destination. The receiving Dataset will use the contents arriving from the source as input data. How data is consumed and/or manipulated in the destination Dataset is not known until the Integration Rule is defined. However, it should be configured in the receiving Dataset using its specific business logic.

    For more information on how to graphically define your Integration Rule, please see the sample found under Integration Rule Example.

  13. Configure the connection between the two Datasets:

  14. Position your mouse over the second Dataset.

  15. When the selection icon (cross arrows) appears, double click on it.

    The main configuration window appears.![Figure 1498: Setting how to behave on AF Data Base](/img/docs/add- integra-rule-virtual-ds_virtual-dataset-main-config-WND.png)

    At the top of the window are two Asset to synchronize options:

  • AF Data Base
  • PIPoint Database
  1. Select the desired Asset to synchronize option.

    Note: The 'Action Name' is actually the name of the synchronization - it must be unique.

    When selecting 'AF Data Base' option, the tabs in the right side pane are the configurations to Synchronize Elements or Transfers, as shown in Figure 1498.

    The left pane displays a list of the available AF Databases. Select the desired database and the update modality section as shown below:

  2. To display the Update modality pane (as shown in Figure 1498) in the list of databases in the left pane, select the desired database.

  3. Determine whether to synchronize to elements or transfers.

    Synchronize Elements: When selecting to Synchronize to an Element, the synchronization occurs at the Model level, meaning it is not independent of the case. So, even though it allows synchronization with the AF Database, it is not recommended. Use the Integration Framework Data Reference (Pimsoft IF Data Reference).

    Synchronize Transfers: When selecting to Synchronize Transfers, the synchronization allows updating and/or inserting transfers at the Transfer table level. This means that in order for the transfers to show in the Case level, you must have run the 'Case Runner' "Collect Transfers" step in the Modeler application. \For more information on Case Runner see Working with Case Runner.

    In addition to the above, when you synchronize transfer you also need to do the following on the Synchronize Transfers tab:![Figure 1499: Synchronize Transfers tab](/img/docs/add- integra-rule-virtual-ds_virtual-dataset-sync-tfers-TAB.png)

  4. Click on the Select the template down-arrow and select the template name.

  5. Click on the Transfer Name down-arrow and select a transfer name from one of the columns of the result table.

    IMPORTANT: Remember that the name of the transfer must be unique, so when creating the Data set to retrieve the transfers from the source, the name column has to be worked around to define a unique name for it.

  6. Click on the Source down-arrow and select the name of the beginning transfer.

  7. Click on the Destination down-arrow and select the name of the ending transfer.

  8. Click on the Start time down-arrow and select the starting time date type.

  9. Click on the End time down-arrow and select the ending time date type.

  10. The database columns must be linked with the Attribute name, by selecting the name of the Attribute in the corresponding column:![Figure 1500: Linking database columns with Attribute name](/img/docs/add- integra-rule-virtual-ds_link-db-cols-with-attribute-name.png)

    If the synchronization is to a PI Point Database, the following window opens.![Figure 1501: Setting Behavior on AF Database](/img/docs/add- integra-rule-virtual-ds_set-behavior-on-af-db-WND.png)

  11. Select the sources of the value and the timestamp.

  12. Set the modality of writing to the PI Server.

  13. (Optional) To manually run the rule now, click the Run icon.

  14. (Optional) To see information about any newly created or existing Integration Rule, click the Info icon.

  15. When finished, click the ![](/img/docs/add- integra-rule-virtual-ds_if-configurator-save-ICON.png) Save icon to save your settings.

Virtual Definition Representations

When you drag a Dataset or Tool onto the Integration Rule graphic dashboard, a box appears in the display representing the dropped item (Dataset or Tool). There are several box types, therefore, specific color-coding has been used to help identify each Dataset inserted into the Integration Rule. The boxes and their color coded representations are described in the following table.

Integration Rule Dataset and Tool Representations

Color Coded SampleItem TypeDescription and Notes
PI/AFThis is a Dataset or a Terminator action for PI, AF and Sigmafine Systems. This box is created by dragging in the graphical area:PI/AF Dataset: for reading dataPI/AF System: for Asset Synchronization procedures terminator-action
OLEDBThis is a Dataset or a Terminator action for OLEDB and ODBC Datasets. This box is created by dragging in the graphical area OLEDB Dataset for reading and writing data from/to OLEDB data sources. The direction can be specified internally by defining the query itself (SELECT from INPUTS and UPDATE, INSERT, DELETE for OUTPUTS)
SOA InvokerThis is a Dataset-only action for SOA Invoker actions. This box is created by dragging in the graphical area any SOA Invoker Dataset for exchanging data with SOA servers. The direction of the data is inside the logic of the SOA call defined inside the Dataset itself.
SOA ListenerThis is a Dataset-only action for SOA Listener actions. This box is created by dragging in the graphical area any SOA Listener Dataset for getting data from a SOA client. The direction is INPUT-only since this object is used to interface SOAclient side.
SOA PublisherSame as SOA Listener
VIRTUALThis is a Dataset-only action for other Integration Rules. This box is created by dragging in the graphical area any other Integration Rule, in this way user can create a chain of Integration Rules (Master Rule ® Specific Rule).
FILEThis is a Dataset or a Terminator action for FILE Datasets. This box is created by dragging in the graphical area FILE Dataset for reading and writing data from/to files. The direction (reading of writing a file) is implicit in the definition of the connection.
ParameterThis is a Dataset-only action for SOA Invoker actions. This box is created by dragging in the graphical area any SOA Invoker Dataset for exchanging data with SOA servers. The direction of the data is inside the logic of the SOA call defined inside the Dataset itself.
ScriptIt sets the default limit of the processed Dataset rows during the Integration Rule (for preview function)